package com.fs.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "订单明细实体类")
public class OrderItem implements Serializable {

    @ApiModelProperty("明细ID")
    private Long id;

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品图片")
    private String productImage;

    @ApiModelProperty("商品单价")
    private BigDecimal price;

    @ApiModelProperty("购买数量")
    private Integer quantity;

    @ApiModelProperty("小计金额")
    private BigDecimal subtotal;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}
